<template>
    <el-date-picker v-model="value" v-bind='$attrs' type="datetime" format='yyyy-MM-dd hh:mm'
        value-format='yyyy-MM-dd hh:mm:ss' @change="getValue">
    </el-date-picker>
</template>

<script>
    export default {
        data() {
            return {
                value: ''
            }
        },
        mounted() {
            this.$emit('emitValue', '')
        },
        methods: {
            getValue(val) {
                this.$emit('emitValue', val)
            },
            reset(){
                this.value = ''
            }
        }
    }
</script>